package share;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@SpringBootApplication(scanBasePackages = "share")
@Controller
@MapperScan("share.dao.mapper")
public class App {

    @RequestMapping("/")
    public String view(Model model) {
        return "view";
    }

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

}
